<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/jquery-3.4.1.js"></script>
    <script>
        $(document).ready(function () {
            var arrayParam = [];
            arrayParam.push("a");
            arrayParam.push("b");
            console.log("arrayParam", arrayParam);

            var  params = [];
            for(var i = 0; i < 3; i++){
                var param = [];
                param.push("one");
                param.push("two");
                param.push("three");
                params.push({"group":i,"param":param});
            }

            var json = JSON.stringify(params);


            var object = {};
            var params2 = [];

            for(var i = 0; i < 3; i++){
                var obj = {};
                obj[i] = "abc";
                params2.push(obj);

            }
            object['name'] = 'jack';
            object['age'] = 25;
            object['data'] = params2;

            var json = JSON.stringify(object);
            console.log(json)

        });

    </script>
</head>
<body>

</body>
</html>